﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="pxStudy.aspx.cs" Inherits="OnLineExam.Web.pxStudy" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>在线课程学习：<%=m.c_title %></title>
    <link href="jquery-easyui-1.2.5/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="jquery-easyui-1.2.5/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="jquery-easyui-1.2.5/jquery-1.7.1.min.js" type="text/javascript"></script> 
    <script src="jquery-easyui-1.2.5/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="Scripts/jQuery.FillOptions.js" type="text/javascript"></script>
    <script src="jquery-easyui-1.2.5/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script type="text/javascript">
        var index = 0;
        function addTab() {
            index++;
            $('#tt').tabs('add', {
                title: 'New Tab ' + index,
                content: 'Tab Body ' + index,
                iconCls: 'icon-save',
                closable: true
            });
        }
        function getSelected() {
            var tab = $('#tt').tabs('getSelected');
            alert('Selected: ' + tab.panel('options').title);
        }
        function update() {
            index++;
            var tab = $('#tt').tabs('getSelected');
            $('#tt').tabs('update', {
                tab: tab,
                options: {
                    title: 'new title' + index,
                    iconCls: 'icon-save'
                }
            });
        }
        function studyok() { 
            
        }
	</script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="background-image: url('Images/da_06.jpg'); height: 82px;" >
        <table style="width: 100%;">
            <tr>
                <td>
                   <img src="Images/logo.jpg" />
                </td>
                <td align="right" style="color: #FFFFFF"><div>欢迎您：<asp:Label ID="labUser" runat="server" Text="Label" Width="70px"></asp:Label>
                    <%if (m.PaperID > 0)
                                  {%> 
    <asp:HiddenField ID="hfPaperID" runat="server" />
    <asp:Button ID="Button1" runat="server" Text="完成学习，进入考试" onclick="Button1_Click" />
                    <asp:LinkButton ID="exit" runat="server" CausesValidation="false" OnClick="exit_Click"
                    PostBackUrl="/Login.aspx?type=out" ForeColor="White">退出系统</asp:LinkButton>
                </div></td>
            </tr>
            
            
        </table>
        
        <%--<a href='UserTest.aspx?PaperID=<%=m.PaperID %>' class="easyui-linkbutton" plain="true" iconCls="icon-ok" >完成学习，并进入考试</a>--%><%} %>
	 
	
	<%--<div style="margin:10px 0">
		<a class="easyui-linkbutton" icon="icon-add" href="javascript:void(0)" onclick="addTab()">add tab</a>
		<a class="easyui-linkbutton" href="javascript:void(0)" onclick="getSelected()">getSelected</a>
		<a class="easyui-linkbutton" href="javascript:void(0)" onclick="update()">Update</a>
	</div>--%>
	</div>
	<div id="tt" class="easyui-tabs" tools="#tab-tools" style="">
    <% switch (m.c_type)
       {
           case "Office办公类文档":%><div title="<%=m.c_title %>" >
           <embed id="flashContainer" src="uploads/px/<%=filepath %>" width="100%" height="800px;"></embed>
			<%--<iframe scrolling="yes" frameborder="0"  src="uploads/px/<%=m.c_path %>" style="width:100%;height:100%;"></iframe>--%>
		</div><%
               break;
           case "视频":%><div title="<%=m.c_title %>" >
			 　<objectid="NSPlay"width=200height=180classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"codebase="http://activex.microsoft.com/activex/controls/mplayer/en

　　/nsmp2inf.cab#Version=6,4,5,715"standby="LoadingMicrosoftWindowsMediaPlayercomponents..."type="application/x-oleobject"align="right"hspace="5">

　　<paramname="AutoRewind"value=1>

　　<paramname="FileName"value="uploads/px/<%=filepath %>">

　　<paramname="ShowControls"value="1">

　　<paramname="ShowPositionControls"value="0">

　　<paramname="ShowAudioControls"value="1">

　　<paramname="ShowTracker"value="0">

　　<paramname="ShowDisplay"value="0">

　　<paramname="ShowStatusBar"value="0">

　　<paramname="ShowGotoBar"value="0">

　　<paramname="ShowCaptioning"value="0">

　　<paramname="AutoStart"value=1>

　　<paramname="Volume"value="-2500">

　　<paramname="AnimationAtStart"value="0">

　　<paramname="TransparentAtStart"value="0">

　　<paramname="AllowChangeDisplaySize"value="0">

　　<paramname="AllowScan"value="0">

　　<paramname="EnableContextMenu"value="0">

　　<paramname="ClickToPlay"value="0">

　　</object>
           </div><%
               break;
           case "动画":%><div title="<%=m.c_title %>" >
           <table>
           <tr>
           <td style="width: 120px">
           <ul> 
               <asp:Literal ID="Literal1" runat="server"></asp:Literal>
           </ul></td>
           <td>
            
            <script src="Scripts/swfobject.js" type="text/javascript"></script>
           <p id="player1"></p>
            <script type="text/javascript">    
                var s1 = new SWFObject("/images/flvplayer.swf", "single", "600", "500", "7");
                s1.addParam("allowfullscreen", "true");
                s1.addParam("autostart", "true");
                s1.addVariable("file", "/uploads/px/<%=filepath %>");
                s1.addVariable("image", "preview.jpg");
                s1.addVariable("width", "600");
                s1.addVariable("height", "500");
                
                s1.write("player1");
                
</script> 
           </td>
           </tr>
           </table>
            </div><%
               break;
           default:%><div title="<%=m.c_title %>" >无法学习，请联系IT热线 4006633333,谢谢。
		</div><%
               break;
       } %>
		
		
	</div>
	
	<div id="tab-tools">
		<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-add" onclick="javascript:alert('add')"></a>
		<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-save" onclick="javascript:alert('save')"></a>
	</div>
	<div id="p-tools">
		<a href="#" class="icon-mini-add" onclick="alert('add')"></a>
		<a href="#" class="icon-mini-edit" onclick="alert('edit')"></a>
		<a href="#" class="icon-mini-refresh" onclick="alert('refresh')"></a>
	</div>
    </form>
</body>
</html>
